package com.ncucoder.dpt.facade.maker;

import com.ncucoder.dpt.facade.Shape;
import com.ncucoder.dpt.facade.impl.Circle;
import com.ncucoder.dpt.facade.impl.Rectangle;
import com.ncucoder.dpt.facade.impl.Square;

/**
 * 外观类
 *
 * @author <a href="https://edit.ncucoder.com">hsowan</a>
 * @since 18-11-29 下午5:56
 **/
public class ShapeMaker {
    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public ShapeMaker() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle() {
        circle.draw();
    }

    public void drawRectangle() {
        rectangle.draw();
    }

    public void drawSquare() {
        square.draw();
    }
}

